import Taro from "@tarojs/taro";
import {Component} from "react";
import { View ,Image, Text} from '@tarojs/components'
import { BASEURL } from '../../constants/global'
import './indexIcon.less'

class indexIcon extends Component {
  //跳转到预约挂号
  toPhyIdentity() {
    Taro.navigateTo({url: '/pages/HospitalRegistration/index'})
  }

  render () {
    return (
      <View className='at-row at-row--wrap icon-content'>
        <View className='at-col at-col-4 icon-item'>
          <Image className='icons-img' src={`${BASEURL}u42.png`} />
          <Text className='icons-title'>国医堂</Text>
        </View>
        <View className='at-col at-col-4 icon-item'>
          <Image className='icons-img' src={`${BASEURL}u45.png`} onClick={this.toPhyIdentity.bind(this)} />
          <Text className='icons-title'>预约挂号</Text>
        </View>
        <View className='at-col at-col-4 icon-item'>
          <Image className='icons-img' src={`${BASEURL}u46.png`} />
          <Text className='icons-title'>智能导诊</Text>
        </View>
      </View>
    )
  }
}
export default indexIcon
